<template>
  <div>
    <!-- 面包屑导航区域 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>商品分类管理</el-breadcrumb-item>
      <el-breadcrumb-item>分类参数列表</el-breadcrumb-item>
    </el-breadcrumb>

    <el-card calss="box-card">
      <el-alert
        :closable="false"
        title="警告提示的文案"
        type="warning"
      ></el-alert>
      <!-- 添加按钮 -->
      <el-row class="cat_opt">
        <el-col :span="3">
          <span>选择商品分类:</span>
        </el-col>
        <el-col :span="11">
          <HMselect :level="3" :onchange="parentChange"></HMselect>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
import HMselect from "@/componentsHM/HMselect.vue";
export default {
  components: {
    HMselect,
  },
  data() {
    return {
      cateList: null,
    };
  },
  methods: {
    parentChange(pids) {
      console.log("使用子组件拉");
      console.log(pids);
    },
  },
};
</script>

<style>
</style>